<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div>
            <input type="text" v-model="name">
            <span v-show="name">你的名字是{{name}}</span>
        </div>
        <div>
            <input type="text" v-model="age">
            <span v-show="age">你的年龄是{{age}}</span>
        </div>
        <div>
            <input type="text" v-model="sex">
            <!-- v-show是隐藏,v-if是删除 -->
            <span v-show="sex">你的性别是{{sex}}</span>
        </div>
    </div>
    <script src="https://cdn.bootcss.com/vue/2.4.2/vue.min.js"></script>
    <script src="main.js"></script>
</body>
</html>
